local Zh_cn = locale == "zh" or locale == "zhr"

name = Zh_cn and "香脆松子" or "Pine Cone Coffee"
local desc_zh_cn = [[
有关咖啡的料理mod似乎很多，但真正用起来总是诸多限制。
于是我便做了这样一个简单的料理mod。没有新食材，没有新道具。使用常见的松果，去烹饪香浓的咖啡.
目前已有十多种料理，欢迎制作品尝！
注意事项：千万不要咖啡上瘾哦~
]]

local desc_en = [[
There seem to be a lot of coffee mods, but there are always a lot of limitations when it comes to actually using them.
So I made this simple cooking mod.No new ingredients, no new items.Use the common pine cones to cook fragrant coffee.
There are currently more than 10 kinds of dishes, so please make them and try them!
Note: Don't get addicted to coffee
]]

description = Zh_cn and desc_zh_cn or desc_en
author = " 阿夜 灰色代表作 Lettuce "
version = "3.1.18"

forumthread = ""

api_version = 10

-- priority = -1000

-- Compatible with Don't Starve Together
dst_compatible = true

-- Not compatible with Don't Starve
dont_starve_compatible = false
reign_of_giants_compatible = false
shipwrecked_compatible = false

-- Character mods are required by all clients
all_clients_require_mod = true

icon_atlas = "modicon.xml"
icon = "modicon.tex"

-- The mod's tags displayed on the server list
server_filter_tags = {
    "item",
}

local function Title(title)
    return {
        name = title,
        hover = "",
        options = { { description = "", data = 0 } },
        default = 0,
    }
end


configuration_options = {
    Title("语言设置"),
    {
        name = "languages",
        label = Zh_cn and "语言" or "Languages",
        hover = Zh_cn and "选择你的语言" or "Choose your language",
        options = {
            {
                description = "简体中文",
                hover = "简体中文/Simplified Chinese",
                data = 'Chinese'
            },
            {
                description = "English",
                hover = "English",
                data = 'English'
            }
        },
        default = Zh_cn and 'Chinese' or 'English'
    },
    Title("咖啡移速调整"),
    {
        name = "NUTS SPEED1",
        label = Zh_cn and "松子咖啡提供的移速" or "The movement speed provided by the Pine Nut Coffee",
        hover = Zh_cn and "改动该移速会改动所有有同样移速buff的咖啡" or "Changing this will change all coffee with the same movement speed buff",
        options =
        {
            { description = "0%", data = 0.00, hover = Zh_cn and "如果你觉得可以" or "If you think it's okay" },
            { description = "5%", data = 0.05, hover = Zh_cn and "如果你觉得可以" or "If you think it's okay" },
            { description = "10%", data = 0.10, hover = Zh_cn and "非常平衡的选项" or "Very balanced option" },
            { description = "15%", data = 0.15, hover = Zh_cn and "非常平衡的选项" or "Very balanced option" },
            { description = "20%(默认)", data = 0.20, hover = Zh_cn and "最初的或许是最好的" or "Maybe it's the best" },
            { description = "25%", data = 0.25, hover = Zh_cn and "最初的或许是最好的" or "Maybe it's the best" },
            { description = "30%", data = 0.30, hover = Zh_cn and "看样子你想更快些" or "Looks like you want to go faster" },
            { description = "35%", data = 0.35, hover = Zh_cn and "看样子你想更快些" or "Looks like you want to go faster" },
            { description = "40%", data = 0.40, hover = Zh_cn and "看样子你想更快些" or "Looks like you want to go faster" },
        },
        default = 0.2,
    },

    {
        name = "NUTS SPEED2",
        label = Zh_cn and "松子拿铁提供的移速" or "The movement speed provided by the Pine Nut Latte",
        hover = Zh_cn and "改动该移速会改动所有有同样移速buff的咖啡" or "Changing this will change all coffee with the same movement speed buff",
        options =
        {
            { description = "0%", data = 0.0, hover = Zh_cn and "如果你觉得可以" or "If you think it's okay" },
            { description = "5%", data = 0.05, hover = Zh_cn and "如果你觉得可以" or "If you think it's okay" },
            { description = "10%", data = 0.1, hover = Zh_cn and "如果你觉得可以" or "If you think it's okay" },
            { description = "15%", data = 0.15, hover = Zh_cn and "非常平衡的选项" or "Very balanced option" },
            { description = "20%", data = 0.2, hover = Zh_cn and "非常平衡的选项" or "Very balanced option" },
            { description = "25%", data = 0.25, hover = Zh_cn and "非常平衡的选项" or "Very balanced option" },
            { description = "30%", data = 0.3, hover = Zh_cn and "这样或许是最好的" or "If you think it's the best" },
            { description = "35%", data = 0.35, hover = Zh_cn and "这样或许是最好的" or "If you think it's the best" },
            { description = "40%", data = 0.4, hover = Zh_cn and "这样或许是最好的" or "If you think it's the best" },
            { description = "45%", data = 0.45, hover = Zh_cn and "看样子你想更快些" or "Looks like you want to go faster" },
            { description = "50%(默认)", data = 0.5, hover = Zh_cn and "看样子你想更快些" or "Looks like you want to go faster" },
            { description = "55%", data = 0.55, hover = Zh_cn and "看样子你想更快些" or "Looks like you want to go faster" },
            { description = "60%", data = 0.6, hover = Zh_cn and "准备起飞！！" or "Ready to take off" },
            { description = "65%", data = 0.65, hover = Zh_cn and "准备起飞！！" or "Ready to take off" },
            { description = "70%", data = 0.7, hover = Zh_cn and "没错，这就是咖啡！" or "That's coffee!" },
            { description = "75%", data = 0.75, hover = Zh_cn and "没错，这就是咖啡！" or "That's coffee!" },
            { description = "80%", data = 0.8, hover = Zh_cn and "没错，这就是咖啡！" or "That's coffee!" },
        },
        default = 0.5,
    },
    Title("杂项设置"),
    {
        name = "Seasonal_Food",
        label = Zh_cn and "季节料理是否随时可做" or "Seasonal food can be made at any time",
        hover = Zh_cn and "某些对应季节才能烹饪的料理，是否可以随时制作" or "Some dishes that can only be cooked in the corresponding season can be made at any time",
        options =
        {
            { description = "不可以(默认)", data = false, hover = Zh_cn and "顺应天时。" or "Follow the seasons." },
            { description = "可以", data = true, hover = Zh_cn and "我随时都想尝到这些美味！" or "I always want to taste these delicious!" },
        },
        default = false,
    },
}
